package net.csdn.business.mirror.controller;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.extern.slf4j.Slf4j;
import net.csdn.business.common.annotation.Inner;
import net.csdn.business.common.domain.query.mirror.ThirdPartInfoMirrorPageQuery;
import net.csdn.business.common.domain.vo.mirror.*;
import net.csdn.business.mirror.service.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

@Slf4j
@Inner
@RestController()
@RequestMapping("/api/admin/third/party/mirror")
public class ThirdPartInfoMirrorController {

    @Autowired
    private ThirdPartMirrorInfoService thirdPartMirrorInfoService;

    /**
    * @Description: 管理员分页查询镜像仓库列表
    */
    @PostMapping("/list")
    public Page<ThirdPartInfoListVO> listPageMirror(@Validated @RequestBody ThirdPartInfoMirrorPageQuery query)  {
        return thirdPartMirrorInfoService.list(query);
    }

}